
package com.xinnet.mms.utils;


/**
 * 重写构造方法（实现根据配置过滤本机是否执行定时器）
 * 
 * @author Administrator
 */
public class SchedulerFactoryBean extends org.springframework.scheduling.quartz.SchedulerFactoryBean {
    public SchedulerFactoryBean() {
        super();
        /*List<String> quartzEnableIPList = Config.getInstance().getStrings("quartz.enable");
        List<String> myIPList = IPUtils.getIP4Addresses();
        quartzEnableIPList.retainAll(myIPList);
        // 本机IP和启用定时器的机器IP有交集，启用定时器，否则不启用定时器。
        if (!quartzEnableIPList.isEmpty()) {
            this.setAutoStartup(true);
        }
        else {
            this.setAutoStartup(false);
        }*/
    }
}
